#if !defined(AFX_IODISPLAYDLG_H__D2420B21_E353_11D2_8D91_00AA00A18C62__INCLUDED_)
#define AFX_IODISPLAYDLG_H__D2420B21_E353_11D2_8D91_00AA00A18C62__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// IODisplayDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CIODisplayDlg dialog
#include "Util\MinLabel.h"
#include "Util\MinButton.h"

class IIO;

class CIODisplayDlg : public CDialog
{
// Construction
public:

	BOOL m_PLCInTimerInitFlag;
	UINT m_TimerID;

	IIO* m_lnkIO;

	int m_nInOldSts[40];
	int m_nInSts[40];
	int m_nOutOldSts[40];
	int m_nOutSts[40];

	int m_nInSelect;
	int m_nOutSelect;
	BOOL m_flgInput;

	void InputTitleDisplay();
	void OutputTitleDisplay();

	CMinButton m_bInTitle[16];
	CMinLabel m_sInNum[16];
	CMinButton m_bOutTitle[16];
	CMinLabel m_sOutNum[16];

	CIODisplayDlg(IIO* pIO, CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CIODisplayDlg)
	enum { IDD = IDD_IODISPLAY_DLG };
	CMinButton	m_bPrev2;
	CMinButton	m_bNext2;
	CMinButton	m_bPrev;
	CMinButton	m_bNext;
	CMinButton	m_bExit;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CIODisplayDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CIODisplayDlg)
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnNext();
	afx_msg void OnPrev();
	afx_msg void OnDestroy();
	afx_msg void OnTitle1();
	afx_msg void OnTitle2();
	afx_msg void OnTitle3();
	afx_msg void OnTitle4();
	afx_msg void OnTitle5();
	afx_msg void OnTitle6();
	afx_msg void OnTitle7();
	afx_msg void OnTitle8();
	afx_msg void OnTitle9();
	afx_msg void OnTitle10();
	afx_msg void OnTitle11();
	afx_msg void OnTitle12();
	afx_msg void OnTitle13();
	afx_msg void OnTitle14();
	afx_msg void OnTitle15();
	afx_msg void OnTitle16();
	afx_msg void OnTitle17();
	afx_msg void OnTitle18();
	afx_msg void OnTitle19();
	afx_msg void OnTitle20();
	afx_msg void OnTitle21();
	afx_msg void OnTitle22();
	afx_msg void OnTitle23();
	afx_msg void OnTitle24();
	afx_msg void OnTitle25();
	afx_msg void OnTitle26();
	afx_msg void OnTitle27();
	afx_msg void OnTitle28();
	afx_msg void OnTitle29();
	afx_msg void OnTitle30();
	afx_msg void OnTitle31();
	afx_msg void OnTitle32();
	afx_msg void OnPrev2();
	afx_msg void OnNext2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_IODISPLAYDLG_H__D2420B21_E353_11D2_8D91_00AA00A18C62__INCLUDED_)
